﻿using Mysoft.Entity.Basic;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Mysoft.Entity
{
    /// <summary>
    /// 字典表
    /// </summary>
    [Table("Sys_Dictionary")]
    public class Sys_Dictionary: EntityBase
    {
        /// <summary>
        /// 主键
        /// </summary>
        [Key]
        public Guid Id { get; set; }
        /// <summary>
        /// 键 英文
        /// </summary>
        public virtual string? Key { get; set; }

        /// <summary>
        /// 键 中文
        /// </summary>
        public virtual string? Name { get; set; }

        /// <summary>
        /// 值
        /// </summary>
        public virtual string? Value { get; set; }

     
        
        /// <summary>
        /// 上级ID
        /// </summary>
        public virtual Guid?  PID { get; set; }
    }
}
